home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c,comp.std.c
- Subject: Re: Integral conversion e.t.c. (was: Re: Hungarian notation)
- Date: Thu, 08 Feb 96 23:20:26 GMT
- Organization: none
- Message-ID: <823821626snz@genesis.demon.co.uk>
- References: <30C40F77.53B5@swsbbs.com> <SPENCER.96Jan22113215@zorgon.ERA.COM> <TANMOY.96Jan29183041@qcd.lanl.gov> <823011209snz@genesis.demon.co.uk> <4epvo3$b2q@natasha.rmii.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4epvo3$b2q@natasha.rmii.com> jcoffin@rmii.com "Jerry Coffin" writes:
-
- >Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
- >
- >>Unfortunately there are some. For instance POSIX defines fdopen() and
- >>fileno() in stdio.h. It would have made more sense to put these in unistd.h
- >>alongsize read, write and close, even though that means defining FILE
- >>in unistd.h
- >
- >However, this only happens if _POSIX_SOURCE is defined. _POSIX_SOURCE
- >is in the implementor's name space, so no strictly conforming program
- >defines it. As such, stdio.h can (and certainly should) be defined to
- >allow POSIX conformance without bothering C programs that want to use
- >the same names for other purposes.
-
- It remains extremely unfortunate that I have to define _POSIX_SOURCE (with
- all of its other consequences) just to get fdopen() (plus various other
- things) declared. It just makes much more sense to keep POSIX headers
- entirely separate from ANSI headers.
-
- I'll try to get back on topic now! :-)
-
- Also it depends on what exactly defines _POSIX_SOURCE. If it is in the
- program source then all bets are off. If on the other hand the implemenation
- defined it (say in response to a compiler command line argument) then it
- ceases to be ANSI conforming by declaring fdopen().
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-